<?php

/**
* @current contentcorrection.php
* @author   LiuYang <liu_yang@haibao.com>
* @date 2016年6月28日 上午10:44:28
*/

namespace haibao\cms\business;

use haibao\cms\data\contentcorrection as ContentCorrectionData; 

class ContentCorrection extends \haibao\cms\business\Base{
  
    public static function getContentCorrectionList($contentCorrectionFilter){
        $data = new ContentCorrectionData();
        return $data->getAll($contentCorrectionFilter);
    }
    
    public static function deleteContentById($id,$arrSet){
        $data = new ContentCorrectionData();
        $data->updateById($id, $arrSet);
        $data->delContentCache();
    }
    
    public static function saveContentCorrection($contentCorrectionData){
        $data = new ContentCorrectionData();
        $dataList = $data->add($contentCorrectionData);
        $data->delContentCache();
        return $dataList;
    }
}
